<script lang="ts" setup>
function onClickLeft() {
    history.back()
}
import type { Ref } from 'vue';
import { ref } from 'vue';
const password: Ref<string> = ref('')
</script>
<template>
    <div>
        <header>
            <van-nav-bar left-text="返回" title="更改密码" left-arrow @click-left="onClickLeft"> </van-nav-bar>
            <div class="vipbox">
                <div class="left">
                    <van-field v-model="password" type="password" name="输入初始密码" placeholder=" 输入初始密码"
                        :rules="[{ required: true, message: '请填写密码' }]" />

                </div>

            </div>
            <div class="vipbox">
                <div class="left">
                    <van-field v-model="password" type="password" name="输入新密码" placeholder="输入新密码"
                        :rules="[{ required: true, message: '请填写密码' }]" />

                </div>

            </div>
            <div class="vipbox">
                <div class="left">
                    <van-field v-model="password" type="password" name=" 再次输入新密码" placeholder="  再次输入新密码"
                        :rules="[{ required: true, message: '请填写密码' }]" />

                </div>

            </div>
            <div class="updatepsw">
                <van-button type="primary">确定更改</van-button>
            </div>
        </header>
    </div>
</template>
<style lang="scss">
.vipbox {
    border-bottom: 1px solid #000;
    margin-left: 5vw;
    margin-right: 5vw;
    padding-bottom: 10px;
    margin: 20px auto;
    width: 90vw;
    display: flex;

    .left {
        width: 90vw;
        font-size: 20px;
        line-height: 44px;
    }


}
.updatepsw{
    margin-top: 20px;
    display: flex;
    justify-content: center;
    .van-button {
    width: 90vw;
}
}

</style>